Skip to content

Conversation

@moonchen
Copy link
Contributor

@moonchen moonchen commented Oct 13, 2025

  1. set-body with an empty string argument causes heap corruption. The cause is incorrect handling of zero-length strings in MIOBuffer::append_xmalloced.
  2. set-body with variable expansion fails to expand the variable. The cause is a typo in the OperatorSetBody::exec() method.

Add autest for these bugs.

1. set-body with an empty string argument causes heap corruption in
   The cause is incorrect handling of zero-length strings in
   MIOBuffer::append_xmalloced.
2. set-body with variable expansion fails to expand the variable.
   The cause is a typo in the OperatorSetBody::exec() method.
Copy link
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just a few minor observations.

@moonchen
Copy link
Contributor Author

[approve ci autest 0]

@moonchen moonchen requested a review from bneradt October 14, 2025 19:13
@moonchen moonchen self-assigned this Oct 20, 2025
@moonchen moonchen added the header_rewrite header_rewrite plugin label Oct 20, 2025
@bryancall bryancall added this to the 10.2.0 milestone Oct 20, 2025
@moonchen moonchen dismissed bneradt’s stale review October 21, 2025 22:21

The requested changes have been applied.

@moonchen moonchen merged commit 56ec03c into apache:master Oct 21, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this to For v10.1.1 in ATS v10.1.x Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

header_rewrite header_rewrite plugin

Projects

Status: For v10.1.1

Development

Successfully merging this pull request may close these issues.

5 participants